package top.go2do.common.service;

import top.go2do.common.module.pageQuery.PageResult;

import java.util.List;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/6/12 11:36
 */
public interface TomatoService<DetailVO, CreateForm, ModifyForm, QueryCondition, QueryAllCondition, IdType> {
    DetailVO create(CreateForm createForm);

    void modifyById(ModifyForm modifyForm);

    void removeById(IdType id);

    DetailVO getById(IdType id);

    PageResult<DetailVO> pageQuery(QueryCondition condition);

    List<DetailVO> listAll(QueryAllCondition condition);
}
